﻿<UserControl x:Class="Noboru.Demo.MessageBoxClassPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    xmlns:c="clr-namespace:Noboru.Windows.Controls;assembly=Noboru.Windows.Controls">

    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="10" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Border Width="Auto" Height="26" BorderThickness="1,1,1,1" BorderBrush="#FF000000" VerticalAlignment="Center" Padding="0,0,0,0" Margin="0,0,0,10">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FF000000" Offset="1"/>
                    <GradientStop Color="#FFB3AFAF" Offset="0.003"/>
                </LinearGradientBrush>
            </Border.Background>
            <TextBlock Text="Message Box Class" Foreground="White"  VerticalAlignment="Center" HorizontalAlignment="Left" Margin="6,0,0,0"/>
        </Border>
        <Border BorderBrush="Gray" BorderThickness="1" Grid.Row="1" Width="Auto" CornerRadius="5" Margin="10,0,10,0" Padding="8">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFBEC0C2" Offset="0.994"/>
                    <GradientStop Color="#FFE5E5E6" Offset="0.006"/>
                </LinearGradientBrush>
            </Border.Background>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <TextBlock Grid.Row="0" Text="Methods [MessageBox class]" />
                <c:ToolStripLabel Grid.Row="1" Name="toolStripLabelShow" Width="Auto" Text="void Show(string text)" HorizontalAlignment="Left" HorizontalContentAlignment="Left" Click="toolStripLabelShow_Click" />
                <c:ToolStripLabel Grid.Row="2" Name="toolStripLabelShow2" Width="Auto" Text="void Show(string text, string title)" HorizontalAlignment="Left" HorizontalContentAlignment="Left" Click="toolStripLabelShow2_Click" />
                <c:ToolStripLabel Grid.Row="3" Name="toolStripLabelShow3" Width="Auto" Text="void Show(string text, string title, MessageBoxButtons buttons)" HorizontalAlignment="Left" HorizontalContentAlignment="Left" Click="toolStripLabelShow3_Click" />
                <c:ToolStripLabel Grid.Row="4" Name="toolStripLabelShow4" Width="Auto" Text="void Show(string text, string title, MessageBoxButtons buttons, MessageBoxIcon icon)" HorizontalAlignment="Left" HorizontalContentAlignment="Left" Click="toolStripLabelShow4_Click" />
                <c:ToolStripLabel Grid.Row="5" Name="toolStripLabelShow5" Width="Auto" Text="void Show(string text, string title, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton)" HorizontalAlignment="Left" HorizontalContentAlignment="Left" Click="toolStripLabelShow5_Click" />
            </Grid>
        </Border>
        <Border BorderBrush="Gray" BorderThickness="1" Grid.Row="4" Width="Auto" CornerRadius="5" Margin="10,0,10,0" Padding="8">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFBEC0C2" Offset="0.994"/>
                    <GradientStop Color="#FFE5E5E6" Offset="0.006"/>
                </LinearGradientBrush>
            </Border.Background>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <TextBlock Grid.Row="0" Text="Properties [MessageBox class]" />
                <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="8, 0, 0, 0" >
                    <TextBlock Text="IsBackgroundGaryed" Margin="0,0,6,0" Foreground="#FF0000FF" />
                    <CheckBox x:Name="checkIsBackgroundGrayed" />
                </StackPanel>
            </Grid>
        </Border>
        <TextBlock Grid.Row="5" Text="DialogResult = " Margin="40,20,0,0" x:Name="txtDialogResult" FontWeight="Bold" FontFamily="Portable User Interface" Foreground="#FF1D00FF" />
    </Grid>

</UserControl>
